<?php
namespace app\common\model;

use support\Model;
use think\model\concern\SoftDelete;


/**
 * Class FileModel
 * @package app\common\model
 */
class FileModel extends Model
{
    use SoftDelete;

    protected $name = "file";
    protected $pk = "id";

    protected $deleteTime = "deleted_at";

    public function isExistFile(string $md5File = null)
    {
       $ret = $this->where(['md5_file' => $md5File])->find();
        return $ret;
    }


}